//
//  SKViewSectionBoard.m
//  Sudoku
//
//  Created by Richard Hodgkins on 30/09/2012.
//  Copyright (c) 2012 Richard Hodgkins. All rights reserved.
//

#import "SKViewSectionBoard.h"

@implementation SKViewSectionBoard

- (id)initWithFrame:(CGRect)frame title:(NSString *)title tag:(NSInteger) tag
{
    self = [super initWithFrame:frame];
    if (self) {
        self.tag = tag;
        self.titleLabel.shadowOffset = CGSizeMake(0, 1);
        self.titleLabel.font = [UIFont boldSystemFontOfSize:[UIFont buttonFontSize]];
        self.contentHorizontalAlignment = UIControlContentHorizontalAlignmentFill;
        
        [self setTitle:title forState:UIControlStateNormal];
        [self setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [self setTitleShadowColor:[UIColor darkGrayColor] forState:UIControlStateNormal];
        
        [self setImage:[UIImage imageNamed:@"minus.png"] forState:UIControlStateNormal];
        [self setImage:[UIImage imageNamed:@"plus.png"] forState:UIControlStateSelected];
        
        [self setBackgroundImage:[UIImage imageNamed:@"table_section_background.png"] forState:UIControlStateNormal];
    }
    return self;
}

@end
